using UnityEngine;

public class DrawGizmosSphere : MonoBehaviour
{
#if UNITY_EDITOR
    public bool isShow = true;
    public Color color = Color.red;
    public float radius;

    public void SetColor(Color color)
    {
        this.color = color;
    }

    public void SetData(float radius)
    {
        this.radius = radius;
    }

    void OnDrawGizmos()
    {
        if (!isShow) return;
        Gizmos.color = color;
        Gizmos.DrawWireSphere(transform.position, radius);
    }
#endif
}